import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'
const tenantKey = 'tenantURL'
export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
export function getTenant() {
  return Cookies.get(tenantKey)
}

export function setTenant(token) {
  return Cookies.set(tenantKey, token)
}

export function removeTenant() {
  return Cookies.remove(tenantKey)
}